﻿using JZ.JiangSu.Model.Entity;
using System.Collections.Generic;


namespace JZ.JiangSu.IRepository
{
    public interface ICompanyInfoRepository:IBaseRepository<CompanyInfo>
    {
        /// <summary>
        /// 更新公司Logo
        /// </summary>
        /// <param name="id">Id，也就是外键的User表的Id</param>
        /// <param name="logoPath">logo图片存储路径</param>
        /// <returns></returns>
        int UpdateLogo(int id, string logoPath);
        /// <summary>
        /// 更新营业执照
        /// </summary>
        /// <param name="uId">Id，也就是外键的User表的Id</param>
        /// <param name="licensePath">图片的存储路径</param>
        /// <returns></returns>
        int UpdateLicense(int uId, string licensePath);
        /// <summary>
        /// 修改公司模板
        /// </summary>
        /// <param name="id"></param>
        /// <param name="templeteId"></param>
        /// <returns></returns>
        int AlterTempleteId(int id, int templeteId);
        /// <summary> 批量更改公司信息的营业执照是否验证 </summary>
        /// <param name="userIds">要修改的公司Id集合</param>
        /// <param name="isLicensed">True--已验证，False--未验证</param>
        /// <param name="reason">审核成功/失败的原因</param>
        /// <returns></returns>
        int UpdateCompanyIsLicensedByUserIds(int[] userIds, bool isLicensed, string reason);
        int UpdateCompanyInfoByIds(List<KeyValuePair<int, int>> list);
        /// <summary>
        /// 获取前topNumber的vip公司
        /// </summary>
        /// <param name="topNumber"></param>
        /// <returns></returns>
        IList<CompanyInfo> GetTopVipCompany(int topNumber);
        /// <summary>
        /// 根据公司名称 获取注册数量  不包含验证营业执照的用户
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        int GetCountCompanyName(string name);
    }
}
